package com.sk.sk_frame_cloud.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author jiaok
 * @since 2023-12-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_netty")
@ApiModel(value="SysNetty对象", description="")
public class SysNetty implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "netty ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "netty 代号")
    private String code;

    @ApiModelProperty(value = "netty 端口号")
    private Integer port;

    @ApiModelProperty(value = "netty IP")
    private String ip;

    @ApiModelProperty(value = "客户端且固定端口时填写（客户端端口）")
    private Integer regularPort;

    @ApiModelProperty(value = "是否本机(1.是，2.否)")
    private Integer isLocal;

    @ApiModelProperty(value = "是否开机启动（1.是，2.否）")
    private Integer isStart;

    @ApiModelProperty(value = "netty类型（1.服务端，2.客户端）")
    private Integer nettyType;

    @ApiModelProperty(value = "客户端通讯状态（1.正常连接，2.断开连接，3.请求连接，4.请求断开）服务端运行状态（5.正常运行，6.停止运行）")
    private Integer commState;


}
